import { request, http } from '.'

/*
首页
*/

export const getStoreList = async ( // 首页门店列表
	data: {
		page: number, 
		pageSize: number,  
		userLatitude: number,
		userLongitude: number,
	}) => {
	return request('/api/v1/store/list', 'GET', data)
}

export const getBanner = async () => { // 首页伦比图
	return request('/api/v1/dictionary/type/banners', 'GET', {})
}

export const getNotice = async () => { // 首页公告
	return request('/api/v1/dictionary/type/notice', 'GET', {})
}


// 店铺详情——>当前店铺商品
export const getStoreProductList = async (data: {page: number, pageSize: number, storeId: number}) => {
	return request('/api/v1/product/list', 'GET', data)
}

export const publicDictionaryData = async (type: string) => { // 根据字典值获取对应数据
	return request(`/api/v1/dictionary/type/${type}`, 'GET', {})
}


